import {WeaTools} from 'ecCom';

// 获取登录信息
export const getLoginInfo = (params = {}) => WeaTools.callApi('/api/portal/login/logininfo', 'POST', params);
// 验证是否部署了CAS
export const checkCasIsDeployed = (params = {}) => WeaTools.callApi('/api/integration/common1/checkCasIsDeployed', 'POST', params);
// 获取升级信息
export const getUpgradeInfo = (params = {}) => WeaTools.callApi('/api/upgrade/getUpgradeInfo', 'GET', params);
// 获取系统语言
export const getActiveLanguage = (params = {}) => WeaTools.callApi('/api/system/language/base/getActiveLanguage', 'GET', params);
// 扫码登录
export const login4qc = (params = {}) => WeaTools.callApi('/mobile/plugin/login/QCLoginStatus.jsp', 'POST', params, 'text');